package com.tundriki.pref;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class StartActivity extends Activity {
	Button 
		startBtn,
		resumeBtn,
		loadBtn,
		settingsBtn,
		exitBtn;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        startBtn = (Button) findViewById(R.id.button1);
        resumeBtn = (Button) findViewById(R.id.button2);
        loadBtn = (Button) findViewById(R.id.button3);
        settingsBtn = (Button) findViewById(R.id.button4);
        exitBtn = (Button) findViewById(R.id.button5);
        
        startBtn.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), GameActivity.class);  
                startActivityForResult(myIntent, 0); 
        	}
        });
        
        resumeBtn.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), GameActivity.class);  
                startActivityForResult(myIntent, 0); 
        	}
        });
        
        exitBtn.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View view) {
            	android.os.Process.killProcess(android.os.Process.myPid());
        	}
        });

        setContentView(R.layout.activity_start);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_start, menu);
        return true;
    }
}
